package com.nbjtjc.common.bean;

public enum INSPECTTYPEENUM {
    ZHJC("综合检查", 1), 专项检查("专项检查", 2),
    RCJC("日常检查", 3), JJRJC("节假日检查", 4),
    JJXJC("季节性检查", 5), XFJC("消防巡查", 6);
    private String name;
    private Integer code;
    public static String getName(Integer code){
        for(INSPECTTYPEENUM inspecttypeenum : INSPECTTYPEENUM.values()){
            if(inspecttypeenum.getCode().equals(code)){
                return inspecttypeenum.getName();
            }
        }
        return "";
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    INSPECTTYPEENUM(String name, Integer code) {
        this.name = name;
        this.code = code;
    }
}
